<?php

namespace app\common\model\work_area;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * 工区
 */
class WorkArea extends Model
{
    use SoftDelete;

    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;


    public static $is_use_v = [1 => '启用', 2 => '未启用'];

    /**
     * 1对一查询项目
     * @return \think\model\relation\HasOne
     */
    public function projLineInfo()
    {
        return $this->belongsTo(ProjLine::class, 'proj_line_id');
    }


}